<%--
  Created by IntelliJ IDEA.
  User: ghost
  Date: 2019/12/8
  Time: 21:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%@include file="checkLogin.jsp"%>
<%
    int pageNo = Integer.parseInt(request.getParameter("pageNo"));
    if(pageNo == 0){    //0为上一页
        int pn = (int) session.getAttribute("pageNo");
        pn = pn -1;
        session.setAttribute("pageNo",pn);
    }else if(pageNo == -1){     //-1为下一页
        int pn = (int) session.getAttribute("pageNo");
        pn = pn +1;
        session.setAttribute("pageNo",pn);
    }else{
        session.setAttribute("pageNo",pageNo);
    }
    response.sendRedirect("studentinfo.jsp");
%>
</body>
</html>
